home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 952 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news2.new-york.net!not-for-mail
  3. From: Daniel Oppenheimer <daniel@yoga.com>
  4. Subject: Beginner question on alternatives to fgetc and realloc
  5. Content-Type: text/plain; charset=us-ascii
  6. X-Nntp-Posting-User: (Unauthenticated)
  7. Content-Transfer-Encoding: 7bit
  8. Message-ID: <30F109F5.13A9@yoga.com>
  9. X-Mailer: Mozilla 2.0b4 (WinNT; I)
  10. Mime-Version: 1.0
  11. X-Nntp-Posting-Host: 140.186.69.3
  12. Date: Mon, 8 Jan 1996 12:11:33 GMT
  13.  
  14. I am a beginner.  I am integrating several c functions into a 
  15. c++ program.  These c functions are member functions in my c++ 
  16. program.  As the functions exist in c, they use fgetc within a 
  17. while loop to copy one character string into another.  And 
  18. realloc is used in conjunction with malloc to dynamically 
  19. reallocate memory.  Is there a c++ alternative to fgetc?  If so 
  20. is it always better to use it?  If it is not always better to 
  21. use it, under what conditions is it better?  Also, is there a 
  22. more elegant and economic solution in c++ to realloc? 
  23.  
  24. Any help would be appreciated.
  25.  
  26. Thank you.
  27.  
  28. Dan
  29.